//
//  LBCCateSectionModel.m
//  喜马拉雅改良版框架
//
//  Created by dllo on 15/12/30.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "LBCCateSectionModel.h"

@implementation LBCCateSectionModel


-(void)setValue:(id)value forKey:(NSString *)key{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSMutableDictionary *dic in value) {
            LBCCategoryListModel *listModel = [[LBCCategoryListModel alloc] init];
            [listModel setValuesForKeysWithDictionary:dic];
            [array addObject:listModel];
        }
        self.list = [NSMutableArray arrayWithArray:array];
    }
}


-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end
